package com.lyy.king.tools.service.captcha;

import com.lyy.king.tools.model.response.CaptchaResponse;
import com.lyy.king.tools.request.CheckCaptchaRequest;

/**
 * 验证码操作
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: cdx
 * @Created: 2024/1/7 14:34
 */
public interface CaptchaService {
    /**
     * 生成验证图片
     * @return
     */
    CaptchaResponse captchaImage();

    /**
     * 检查验证
     * @param request
     * @return
     */
    Boolean checkCaptcha( CheckCaptchaRequest request);
}
